# 1.use this command to get simulator process sandbox root path;
# simctl spawn Booted $PWD/unicornvm_apitest
# 2.use <ln -s> to fix path issue;
# 3.start to run with : simctl spawn Booted $PWD/unicornvm_apitest;

all:
	clang++ -Os -target arm64-apple-ios14.0-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk -o unicornvm_apitest.iphone -I../include -L../dylib_sim -lunicornvm -framework Foundation -std=gnu++14 -stdlib=libc++ ./apitest.mm
	codesign --remove-signature unicornvm_apitest.iphone
